package two.chapter_1.c1_3;

import edu.princeton.cs.algs4.StdOut;


public class Ex1_3_12 {

    public static void main(String [] args){
        Stack<String> origin=new LinkStack<>();
        origin.push("1");
        origin.push("2");
        origin.push("3");
        origin.push("4");
        origin.push("5");
        for (String item:origin){
            StdOut.print(item);
        }
        StdOut.println();
        Stack<String> copyed=LinkStack.copy(origin);
       for (String item:copyed){
           StdOut.print(item);
       }

    }


}
